package com.zhuoyue.common.dto;

import lombok.Data;

import java.io.Serializable;

/**
 * 接口返回结果封装true/false
 *
 * @author Administrator
 */
@Data
public class BaseResultDTO implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 8634580794272004072L;

    protected Boolean success = false;

    protected String resultCode;
    protected String errorDetail;
    protected String needResult;

    public String getErrorDetail() {
        return errorDetail;
    }

    public void setErrorDetail(String errorDetail) {
        this.errorDetail = errorDetail;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public boolean isFailed() {
        return !success;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getNeedResult() {
        return needResult;
    }

    public void setNeedResult(String needResult) {
        this.needResult = needResult;
    }

}
